Category: Geeks r Us
Hey guys,
I'm putting a web site together wherein I have to collect some information from a prospective member and have it emailed to me. I've written the form in php, and while the form looks ok, it does ... absolutely nothing. No errors, no doing what it's supposed to, (redirect to another page with the header location command), no nothing. It just sits there, after having wiped the input from the user totally from the screen. Can I ask then, someone to hit me up who is willing to take a look at my code, or give me pointers as to where I went wrong? Other than that, has anyone else ever had this issue and solved it? If so how?
literally any help is appreciated here. I am of course continually looking for ansewrs myself. One thing that it could be is that the server I want to put the form on is running php 5, and I'm writing mostly in php 4 as that's what I know. I'd have thought it would be backward compatible though wouldn't it?
Cheers,
Simon
Hi Simon,
Well, it depends on what you put on your next webpage. But be sure that your target page is right. For example, if a user needs to enter an information (if it is personal or just search string), nhe next page will be the target of the form. for example, <form method ="POST", action ="welcome.php". I hope it helps. Yes, you can send your code here if you want or you send me on my email address.
Angel
Angel, you rock. Thank you so much for that. And your solution wasnt' too far from what was actually wrong either. I was actually checking for the wrong _post variable, lol have to be careful as I'm not sure if php code is escaped here. Anyway as soon as I checked for the right variable, all was well. The email was sent, and the page was dynamically changed for the next step in the sign up process. Now I need to validate my clients responses. This'll be fun.
Cheers,
Simon
That's good.